package lcr;

import Sequence.TreeNode;

public class Test0141 {
}

class Solution0141_1 {
    public ListNode trainningPlan(ListNode head) {
        ListNode ans = new ListNode();
        while (head!= null) {
            ListNode now = head;
            head = head.next;
            now.next = ans.next;
            ans.next = now;
        }
        return ans.next;
    }
}
